const p = new Promise((resolve,reject)=>{
    setTimeout(()=>{
     resolve('123')
     },1000)
    })
    .then(res=>{
     console.log(res) //1秒后打印123
    })
    